package task3;

public class NetPlan extends Plan implements NetInterface{
    private double data;
//    private double price;

    public NetPlan(double data, double price) {
        setData(data);
        setPrice(price);
    }

    public double getData() {
        return data;
    }

    public void setData(double data) {
        this.data = data;
    }

//    public double getPrice() {
//        return price;
//    }
//
//    public void setPrice(double price) {
//        this.price = price;
//    }

    @Override
    public void show(){
        System.out.println("上网流量：\t" +data);
        System.out.println("每月资费：\t" + price);
    }

    @Override
    public void net(int date, SimCard simCard) {
        System.out.println("上网套餐类实现上网服务接口");
    }
}
